<?php

namespace App\model;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class Expenditure extends Model
{
    /*
    *支出明细
    *@author *****
    */

    protected $table = 'expenditure';
    protected $primaryKey='exp_id';
    public $timestamps = false;

    /**
     * @return mixed
     * 支出页面列表
     * 作者：*****
     */
    public function expenditure_lis(){
        return $this->get();
    }

    /**
     * @return mixed
     * 支出页面其他费用查询
     * 作者：*****
     */
    public function income(){
        return $this->sum('number');
    }


}